package com.xue566.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Author: Wuzh
 * @Description: 优惠券实体类
 * @Data:
 */
@Data
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式
@TableName(value = "coupon_info")
public class CouponEntity extends BaseEntity {


    @TableId(value = "couponId", type = IdType.INPUT)
    private String couponId;
    @TableField(value = "couponName")
    private String couponName;
    @TableField(value = "couponValue")
    private String couponValue;
    @TableField(value = "createTime")
    private String createTime;
    @TableField(value = "userId")
    private String userId;
    @TableField(value = "isUsed")
    private int isUsed;

    public String getCouponId () {
        return couponId;
    }

    public void setCouponId (String couponId) {
        this.couponId = couponId;
    }

    public String getCouponName () {
        return couponName;
    }

    public void setCouponName (String couponName) {
        this.couponName = couponName;
    }

    public String getCouponValue () {
        return couponValue;
    }

    public void setCouponValue (String couponValue) {
        this.couponValue = couponValue;
    }

    public String getCreateTime () {
        return createTime;
    }

    public void setCreateTime (String createTime) {
        this.createTime = createTime;
    }

    public String getUserId () {
        return userId;
    }

    public void setUserId (String userId) {
        this.userId = userId;
    }

    public int getIsUsed () {
        return isUsed;
    }

    public void setIsUsed (int isUsed) {
        this.isUsed = isUsed;
    }
}
